<?php
namespace Common\Model;

class VSiteModel extends SiteModel {
    protected $tableName = 'v_site';

    protected function _options_filter(&$options) {
        if(!$loginUser = C('RUN_LOGIN_USER')) {
            exit('NO LOGIN');
        }

        if($loginUser['type'] == 3) {
            $options['where'] = isset($options['where']) ? $options['where'] : array();
            $options['where']['service_id'] = $loginUser['uid'];

            return true;
        }
    }

}
